package com.maxlen.entity.service;

import com.maxlen.entity.to.SeckillPriceTO;
import com.maxlen.entity.to.SeckillSessionTO;

import java.util.List;

public interface SeckillService {
    void uploadSeckillSkuLatest3Days();

    List<SeckillSessionTO.SeckillSkuRelationTO> getCurrentSeckillSkuList();

    List<SeckillSessionTO.SeckillSkuRelationTO> getSkuSeckillInfo(Long skuId);

    /**
     * 远程调用：根据 skuId 查询是否是秒杀商品，返回离当前时间最近的秒杀信息
     * @param skuIds
     * @return
     */
    List<SeckillPriceTO> getSkuSeckillBySkuIdList(List<Long> skuIds);
}
